/**
 * 初始化用户状态
 * @type {{accessToken: string, userId: number}}
 */
export const initUserState = { userId: -1, accessToken: '' }

/**
 * 用户 state
 * @type {{userInfo: {gender: string, phone: string, registerTime: string, name: string, department: string, email: string, age: string, username: string}, salaryList: []}}
 */
export const initUserInfo = {
  userInfo: {
    username: '',
    email: '',
    name: '',
    age: '',
    gender: '',
    phone: '',
    department: '',
    registerTime: ''
  },
  salaryList: []
}

/**
 * 管理系统 state
 * @type {{userList: [], salaryList: [], currentDepartment: {phone: string, name: string, place: string, time: string, parentId: string}, allDepartmentList: [], departmentList: []}}
 */
export const initAdminPage = {
  userList: [],
  salaryList: [],
  departmentList: [],
  allDepartmentList: [],
  currentDepartment: {
    name: '',
    place: '',
    phone: '',
    parentId: '',
    time: ''
  }
}

/**
 * 全局数据
 * @type {{}}
 */
export const initGlobal = {}